import request from "./request"

export const logApi = {
    // 获取日志列表（分页）
    getLogList(params) {
        return request.get("/log/page", { params })
    },

    // 删除日志
    deleteLog(id) {
        return request.delete(`/log/${id}`)
    },

    // 批量删除日志
    batchDeleteLogs(ids) {
        return request.delete("/log/batch", { data: ids })
    },

    // 获取日志统计
    getLogStats() {
        return request.get("/log/stats")
    },
}
